//array , arrays #include using namespace std; void getNumbers(int n[]) { for(int i = 0; i < 10; i++) { cout << "Enter number " << i + 1 << ":"; cin >> n[i]; } } void main() { //size of the array - must be a whole number, literal or constant int numbers[10]; // 0->9 0 -> (n-1) //numbers - is a pointer //pointer - a variable that holds an address getNumbers(numbers); for(int i = 0; i < 10; i++) { cout << numbers[i] << endl; } } //#include //#include //using namespace std; // //void main() //{ // PlaySound(TEXT("Voices\\Lumberjack\\one.wav"), NULL, SND_FILENAME | SND_ASYNC); // PlaySound(TEXT("C:\\Users\\dsteil\\Documents\\Visual Studio 2012\\Projects\\170Example\\170Example\\Voices\\Emily\\two.wav"), NULL, SND_FILENAME | SND_SYNC); // PlaySound(TEXT("C:\\Users\\dsteil\\Documents\\Visual Studio 2012\\Projects\\170Example\\170Example\\Voices\\Duncun\\three.wav"), NULL, SND_FILENAME | SND_SYNC); // PlaySound(TEXT("C:\\Users\\dsteil\\Documents\\Visual Studio 2012\\Projects\\170Example\\170Example\\Voices\\Lumberjack\\four.wav"), NULL, SND_FILENAME | SND_SYNC); // PlaySound(TEXT("C:\\Users\\dsteil\\Documents\\Visual Studio 2012\\Projects\\170Example\\170Example\\Voices\\Lumberjack\\five.wav"), NULL, SND_FILENAME | SND_SYNC); // PlaySound(TEXT("C:\\Users\\dsteil\\Documents\\Visual Studio 2012\\Projects\\170Example\\170Example\\Voices\\Lumberjack\\six.wav"), NULL, SND_FILENAME | SND_SYNC); //}